-- GENERATED SPELL FOR [Coast Crawl Deepseer] --


function spell0_5328(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_5328', 0, 1)
end

function spell1_5328(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5328', 7000, 1)
end

function Sorts_5328(pUnit, Event)
local choix_sorts_5328 = math.random(0, 1)
if choix_sorts_5328 == 0 then
pUnit:RegisterEvent('spell0_5328', 1, 1)
end
if choix_sorts_5328 == 1 then
pUnit:RegisterEvent('spell1_5328', 1, 1)
end
end

function mob5328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5328', math.random(1500, 3000), 1)
end

function mob5328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5328, 1, 'mob5328_Action')
RegisterUnitEvent(5328, 2, 'mob5328_Leave')
RegisterUnitEvent(5328, 3, 'mob5328_Kill')
RegisterUnitEvent(5328, 4, 'mob5328_Die')
